Instant-messaging-based picture sending method and device

ABSTRACT

At a first computing device, a target image is identified. The target image is provided in a display on the first computing device in a communication area displaying a conversation between a first user using the first computing device and a second user using a second computing device. An indication is received that the first user has initiated editing of the target image. An edit control listing editing options is provided for display in the communication area. At the first computing device, a user selection is received of a particular editing option selected from the editing options. An edited target image is created by editing the target image using an edit operation associated with the particular editing option. The edited target image is provided to the second computing device and the communication area is updated to display the edited target image.

This application is a continuation of U.S. patent application Ser. No.16/031,306, filed Jul. 10, 2018, which claims priority to Chinese PatentApplication No. 201710561491.0, filed on Jul. 11, 2017, which are herebyincorporated by reference in their entirety.

TECHNICAL FIELD

The present application relates to the field of instant messaging, andin particular, to an instant-messaging-based picture sending method anddevice.

BACKGROUND

Rapid development of the Internet technology brings variouscommunications software, such as QQ, WeChat, and IP Messenger. Thecommunications software can allow at least two users to communicate witheach other by using the communications software's text data, file data,voice data, video data, etc. Emergence of the communications softwaregreatly facilitates communication in daily life.

To provide better services for a user, the communications softwareprovides the user with various emoji pictures, and allows at least twousers to send an emoji picture to each other during communication. Forexample, user A sends an emoji picture to user B. When user Acommunicates with user B by using the communications software, thecommunications software can display an emoji picture library to user Awhen user A enters chat information. When user A wants to send an emojipicture, user A can select an emoji picture that user A wants to sendfrom the emoji picture library, and determine to send the emoji picture.A server corresponding to the communications software can send the emojipicture selected by user A to user B. As a result, the emoji picture istransferred from user A to user B.

However, in actual application, when a user sends an emoji picture,after the user selects an emoji picture that the user wants to send fromthe emoji picture library, the communications software can send theselected emoji picture only based on a specified pattern of the emojipicture. Consequently, user experience is relatively poor due to thesimple emoji picture sending method.

SUMMARY

Implementations of the present application provide aninstant-messaging-based picture sending method and device to resolve aproblem in the existing technology that user experience is relativelypoor due to a simple emoji picture sending method.

The implementations of the present application provide aninstant-messaging-based emoji picture sending method, including:receiving, by a first communications client device, an emoji picturesent by a second communications client device; receiving, by the firstcommunications client device, an editing instruction for the emojipicture; editing, by the first communications client device, the emojipicture based on the editing instruction in a session window where thefirst communications client device interacts with the secondcommunications client device, to obtain an edited emoji picture; andsending, by the first communications client device, the edited emojipicture to the second communications client device.

The implementations of the present application provide aninstant-messaging-based emoji picture sending device, including: apicture receiving unit, configured to receive an emoji picture sent by asecond communications client device; an instruction receiving unit,configured to receive an editing instruction for the emoji picture; anediting unit, configured to edit the emoji picture based on the editinginstruction in a session window where a first communications clientdevice interacts with the second communications client device, to obtainan edited emoji picture; and a sending unit, configured to send theedited emoji picture to the second communications client device.

The implementations of the present application provide aninstant-messaging-based emoji picture sending apparatus, including amemory and a processor, where the memory is configured to store aprogram; and the processor is configured to execute the program storedin the memory, and specifically perform the following method: receivingan emoji picture sent by a second communications client device;receiving an editing instruction for the emoji picture; editing theemoji picture based on the editing instruction in a session window wherea first communications client device interacts with the secondcommunications client device, to obtain an edited emoji picture; andsending the edited emoji picture to the second communications clientdevice.

The implementations of the present application provide a computerreadable storage medium, where the computer readable storage mediumstores one or more programs, and when the one or more programs areexecuted by an electronic device that includes a plurality ofapplication programs, the electronic device performs the followingmethod: receiving an emoji picture sent by a second communicationsclient device; receiving an editing instruction for the emoji picture;editing the emoji picture based on the editing instruction in a sessionwindow, where a first communications client device interacts with thesecond communications client device, to obtain an edited emoji picture;and sending the edited emoji picture to the second communications clientdevice.

The implementations of the present application further provide aninstant-messaging-based emoji picture sending method, including:receiving, by a first communications client device in a session window,an emoji picture sent by a second communications client device, wherethe session window is a session window of a group; receiving, by thefirst communications client device, an editing instruction for the emojipicture; editing, by the first communications client device, the emojipicture in the session window based on the editing instruction, toobtain an edited emoji picture; and sending, by the first communicationsclient device, the edited emoji picture in the session window.

The implementations of the present application further provide aninstant-messaging-based emoji picture sending device, including: apicture receiving unit, configured to receive, in a session window, anemoji picture sent by a second communications client device, where thesession window is a session window of a group; an instruction receivingunit, configured to receive an editing instruction for the emojipicture; an editing unit, configured to edit the emoji picture in thesession window based on the editing instruction, to obtain an editedemoji picture; and a sending unit, configured to send the edited emojipicture in the session window.

The implementations of the present application further provide aninstant-messaging-based emoji picture sending apparatus, including amemory and a processor, where the memory is configured to store aprogram; and the processor is configured to execute the program storedin the memory, and specifically perform the following method: receiving,in a session window, an emoji picture sent by a second communicationsclient device, where the session window is a session window of a group;receiving an editing instruction for the emoji picture; editing theemoji picture in the session window based on the editing instruction, toobtain an edited emoji picture; and sending the edited emoji picture inthe session window.

The implementations of the present application further provide acomputer readable storage medium, where the computer readable storagemedium stores one or more programs, and when the one or more programsare executed by an electronic device that includes a plurality ofapplication programs, the electronic device performs the followingmethod: receiving, in a session window, an emoji picture sent by asecond communications client device, where the session window is asession window of a group; receiving an editing instruction for theemoji picture; editing the emoji picture in the session window based onthe editing instruction, to obtain an edited emoji picture; and sendingthe edited emoji picture in the session window.

At least one of the previous technical solutions used in theimplementations of the present application can achieve the followingbeneficial effects:

In the technical solutions provided in the implementations of thepresent application, after the user uses the first communications clientdevice to receive the emoji picture sent by the second communicationsclient device, if the user wants to send the emoji picture to the secondcommunications client device, the user can send the editing instructionfor the emoji picture to the first communications client device. Afterreceiving the editing instruction, the first communications clientdevice can edit the emoji picture in the session window, where the firstcommunications client device interacts with the second communicationsclient device, and send the emoji picture to another user. As such, whensending an emoji picture, a user can edit a received emoji picture inthe session window, and then send an edited emoji picture. Because theuser can edit and then send the emoji picture, compared with theexisting technology, there can be diverse emoji picture sending methods,so as to effectively improve user experience.

In addition, because the user can send a received emoji picture withoutdownloading the emoji picture, user operations can be simplified, and itis more convenient for the user to send the emoji picture.

The implementations of the present application provide aninstant-messaging-based picture sending method, including: determining,by a first communications client device, a target picture; receiving, bythe first communications client device, an editing instruction for thetarget picture; editing, by the first communications client device, thetarget picture in a session window based on the editing instruction, toobtain an edited picture, where the session window is a session window,where the first communications client device interacts with anothercommunications client, or a session window where the firstcommunications client device interacts with other communicationsclients; and sending, by the first communications client device, theedited picture in the session window.

The implementations of the present application provide aninstant-messaging-based picture sending device, including: a determiningunit, configured to determine a target picture; a receiving unit,configured to receive an editing instruction for the target picture; anediting unit, configured to edit the target picture in a session windowbased on the editing instruction, to obtain an edited picture, where thesession window is a session window, where a first communications clientdevice interacts with another communications client, or a session windowwhere a first communications client device interacts with othercommunications clients; and a sending unit, configured to send theedited picture in the session window.

The implementations of the present application provide aninstant-messaging-based picture sending apparatus, including a memoryand a processor, where the memory is configured to store a program; andthe processor is configured to execute the program stored in the memory,and specifically perform the following method: determining a targetpicture; receiving an editing instruction for the target picture;editing the target picture in a session window based on the editinginstruction, to obtain an edited picture, where the session window is asession window, where a first communications client device interactswith another communications client, or a session window where a firstcommunications client device interacts with other communicationsclients; and sending the edited picture in the session window.

The implementations of the present application provide a computerreadable storage medium, where the computer readable storage mediumstores one or more programs, and when the one or more programs areexecuted by an electronic device that includes a plurality ofapplication programs, the electronic device performs the followingmethod: determining a target picture; receiving an editing instructionfor the target picture; editing the target picture in a session windowbased on the editing instruction, to obtain an edited picture, where thesession window is a session window, where a first communications clientdevice interacts with another communications client, or a session windowwhere a first communications client device interacts with othercommunications clients; and sending the edited picture in the sessionwindow.

The implementations of the present application further provide aninstant-messaging-based picture sending method, including: determining,by a first communications client device, a target picture; editing, bythe first communications client device, the target picture in a sessionwindow based on attribute information of a user who uses the firstcommunications client device, to obtain an edited picture, where thesession window is a session window, where the first communicationsclient device interacts with another communications client, or a sessionwindow where the first communications client device interacts with othercommunications clients; and sending, by the first communications clientdevice, the edited picture in the session window.

The implementations of the present application further provide aninstant-messaging-based picture sending device, including: a determiningunit, configured to determine a target picture; an editing unit,configured to edit the target picture in a session window based onattribute information of a user who uses a first communications clientdevice, to obtain an edited picture, where the session window is asession window, where the first communications client device interactswith another communications client, or a session window where the firstcommunications client device interacts with other communicationsclients; and a sending unit, configured to send the edited picture inthe session window.

The implementations of the present application further provide aninstant-messaging-based picture sending apparatus, including a memoryand a processor, where the memory is configured to store a program; andthe processor is configured to execute the program stored in the memory,and specifically perform the following method: determining a targetpicture; editing the target picture in a session window based onattribute information of a user who uses a first communications clientdevice, to obtain an edited picture, where the session window is asession window, where the first communications client device interactswith another communications client, or a session window where the firstcommunications client device interacts with other communicationsclients; and sending the edited picture in the session window.

The implementations of the present application further provide acomputer readable storage medium, where the computer readable storagemedium stores one or more programs, and when the one or more programsare executed by an electronic device that includes a plurality ofapplication programs, the electronic device performs the followingmethod: determining a target picture; editing the target picture in asession window based on attribute information of a user who uses a firstcommunications client device, to obtain an edited picture, where thesession window is a session window, where the first communicationsclient device interacts with another communications client, or a sessionwindow where the first communications client device interacts with othercommunications clients; and sending the edited picture in the sessionwindow.

In the technical solutions provided in the implementations of thepresent application, when using the first communications client deviceto send the target picture, the user can send the editing instructionfor the target picture to the first communications client device. Thefirst communications client device can edit the target picture based onthe editing instruction in the session window where the firstcommunications client device interacts with another communicationsclient, or in the session window where the first communications clientdevice interacts with other communications clients, and send the editedpicture in the session window after obtaining the edited picture. Assuch, when a user sends an emoji picture by using the picture sendingmethod provided in the implementations of the present application, theuser can edit, in the session window, the emoji picture that needs to besent, and send an edited emoji picture to another user. Therefore,compared with the existing technology, there can be diverse emojipicture sending methods, so as to effectively improve user experience.

BRIEF DESCRIPTION OF DRAWINGS

The accompanying drawings described here are intended to provide afurther understanding of the present application, and constitute a partof the present application. The illustrative implementations of thepresent application and descriptions of the implementations are intendedto describe the present application, and do not constitute limitationson the present application. In the accompanying drawings:

FIG. 1 is a schematic diagram illustrating sending an emoji picture inthe existing technology;

FIG. 2 is a schematic flowchart illustrating an instant-messaging-basedemoji picture sending method according to an implementation of thepresent application;

FIG. 3 is a schematic diagram illustrating an instant-messaging-basedemoji picture sending method according to an implementation of thepresent application;

FIG. 4 is a schematic diagram illustrating an instant-messaging-basedemoji picture sending method according to an implementation of thepresent application;

FIG. 5 is a schematic diagram illustrating an instant-messaging-basedemoji picture sending method according to an implementation of thepresent application;

FIG. 6 is a schematic diagram illustrating an instant-messaging-basedemoji picture sending method according to an implementation of thepresent application;

FIG. 7 is a schematic flowchart illustrating an instant-messaging-basedpicture sending method according to an implementation of the presentapplication;

FIG. 8 is a schematic flowchart illustrating anotherinstant-messaging-based picture sending method according to animplementation of the present application;

FIG. 9 is a schematic flowchart illustrating still anotherinstant-messaging-based picture sending method according to animplementation of the present application;

FIG. 10 is a schematic structural diagram illustrating an electronicdevice according to an implementation of the present application;

FIG. 11 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending device according to animplementation of the present application;

FIG. 12 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending apparatus according to animplementation of the present application;

FIG. 13 is a schematic structural diagram illustrating an electronicdevice according to an implementation of the present application;

FIG. 14 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending device according to animplementation of the present application;

FIG. 15 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending apparatus according to animplementation of the present application;

FIG. 16 is a schematic structural diagram illustrating an electronicdevice according to an implementation of the present application;

FIG. 17 is a schematic structural diagram illustrating aninstant-messaging-based picture sending device according to animplementation of the present application;

FIG. 18 is a schematic structural diagram illustrating aninstant-messaging-based picture sending apparatus according to animplementation of the present application;

FIG. 19 is a schematic structural diagram illustrating an electronicdevice according to an implementation of the present application;

FIG. 20 is a schematic structural diagram illustrating aninstant-messaging-based picture sending device according to animplementation of the present application;

FIG. 21 is a schematic structural diagram illustrating aninstant-messaging-based picture sending apparatus according to animplementation of the present application; and

FIG. 22 is a flowchart illustrating an example of a computer-implementedmethod for providing an edited image, according to an implementation ofthe present disclosure.

DESCRIPTION OF EMBODIMENTS

An emoji picture can be a picture that can express expression or mood ofa user. In existing technology, to provide better services for a user,communications software provides the user with a large number of emojipictures, and allows the user to send the emoji pictures provided by thecommunications software when the user uses the communications softwareto communicate with another user. When using the communications softwareto send an emoji picture to another user, the user needs to downloademoji pictures to be sent, and after downloading is complete, the usercan select an emoji picture that the user wants to send, so that thecommunications software can send the emoji picture selected by the userbased on a specified pattern of the emoji picture.

As shown in FIG. 1, FIG. 1 is a schematic diagram illustrating sendingan emoji picture in the existing technology. In FIG. 1, after user Asends a picture a to user B, user B can send the picture a to user A.Afterwards, after user A sends a picture b to user B, user B can alsosend the picture b to user A. As shown in FIG. 1, both user A and user Bsend the picture a and the picture b based on specified patterns of thepicture a and the picture b.

However, in actual application, when sending the picture a, user Bprefers that the “dog head” in the picture a looks at a profile pictureof user A, so that an object (user A) “despised” by the “dog head” inthe picture a is consistent with user A that the “dog head” looks at.Likewise, user B also prefers that a face in the picture b looks at theprofile picture of user A. Apparently, in the existing picture sendingmethod, the picture a and the picture b cannot be sent in the previousway.

To send the picture a and the picture b in FIG. 1 in the previous way,the implementations of the present application provide aninstant-messaging-based picture sending method and device. The methodincludes: receiving, by a first communications client device, an emojipicture sent by a second communications client device; receiving, by thefirst communications client device, an editing instruction for the emojipicture; editing, by the first communications client device, the emojipicture based on the editing instruction in a session window, where thefirst communications client device interacts with the secondcommunications client device, to obtain an edited emoji picture; andsending, by the first communications client device, the edited emojipicture to the second communications client device.

Therefore, a user can edit a received emoji picture, and then send anedited emoji picture. Therefore, compared with the existing technology,there can be diverse emoji picture sending methods, so as to effectivelyimprove user experience.

The following clearly and completely describes the technical solutionsin the present application with reference to the specificimplementations of the present application and the correspondingaccompanying drawings. Apparently, the described implementations aremerely some but not all of the implementations of the presentapplication. Other implementations obtained by a person of ordinaryskill in the art based on the implementations of the present applicationwithout creative efforts shall fall within the protection scope of thepresent application.

The instant-messaging-based picture sending method provided in theimplementations of the present application can be implemented bycommunications software having an instant messaging function.

The technical solutions provided in the implementations of the presentapplication are described in detail below with reference to theaccompanying drawings.

Implementation 1

FIG. 2 is a schematic flowchart illustrating an instant-messaging-basedemoji picture sending method according to this implementation of thepresent application. The method is described below. This implementationof the present application can be performed by a first communicationsclient device.

Step 201: The first communications client device receives an emojipicture sent by a second communications client device.

In step 201, a user who uses the first communications client device anda user who uses the second communications client device can send anemoji picture to each other when the users communicate with each otherby using communications software.

In this implementation of the present application, after the secondcommunications client device sends the emoji picture to the firstcommunications client device, the first communications client device canreceive the emoji picture sent by the second communications clientdevice, and display the emoji picture in a session window where thefirst communications client device interacts with the secondcommunications client device.

It is worthwhile to note that, in this implementation of the presentapplication, there can be at least two application scenarios where thefirst communications client device receives the emoji picture sent bythe second communications client device. In a first applicationscenario, the first communications client device performs one-to-oneinteraction with the second communications client device. In a secondapplication scenario, the first communications client device and thesecond communications client device belong to the same group, and thefirst communications client device interacts with the secondcommunications client device in the group.

If the first communications client device performs one-to-oneinteraction with the second communications client device, the sessionwindow can be a session window where the first communications clientdevice performs one-to-one interaction with the second communicationsclient device. If the first communications client device interacts withthe second communications client device in the group, the session windowcan be a session window of the group.

Step 202: The first communications client device receives an editinginstruction for the emoji picture.

In step 202, after receiving the emoji picture and displaying the emojipicture in the session window, the first communications client devicecan receive the editing instruction for the emoji picture, from the userwho uses the first communications client device, so that the firstcommunications client device edits the emoji picture.

In this implementation of the present application, the editinginstruction can be used for editing the emoji picture, and specifically,can be an editing instruction for changing a specified pattern of theemoji picture.

Specifically, that the first communications client device receives anediting instruction for the emoji picture includes: when detecting aspecified operation performed by a user on the emoji picture,displaying, by the first communications client device, editing optionsfor editing the emoji picture in the session window, where the specifiedoperation includes a tap/click operation, a double-tap/click operation,or a touch and hold operation; and receiving, by the firstcommunications client device, the editing instruction for the emojipicture, where the editing instruction is obtained by the user byselecting one editing option.

In other words, the first communications client device can monitor inreal time whether the user who uses the first communications clientdevice performs the specified operation such as the tap/click operation,the double-tap/click operation, or the touch and hold operation on theemoji picture, and if the first communications client device detects thespecified operation performed by the user on the emoji picture, thefirst communications client device can display the editing options forthe emoji picture in the session window.

The editing options can be displayed at a floating layer in the sessionwindow, or can be displayed in a drop-down menu in the session window.It is not specifically limited. The editing options can include anoption for editing the emoji picture. For example, the option can beperforming inverse editing on the emoji picture, performing blurringediting on the emoji picture, performing deformation editing on theemoji picture, or performing rotation editing on the emoji picture.

Therefore, after viewing the editing options, the user who uses thefirst communications client device can select one option based on a needof the user.

After the user selects the option from the editing options, it can beconsidered that the user sends the editing instruction for the emojipicture to the first communications client device. The firstcommunications client device can receive the editing instruction.

Step 203: The first communications client device edits the emoji picturebased on the editing instruction in a session window, where the firstcommunications client device interacts with the second communicationsclient device, to obtain an edited emoji picture.

In step 203, after receiving the editing instruction, the firstcommunications client device can edit the emoji picture in the sessionwindow based on the editing instruction, to obtain the edited emojipicture.

For example, if the editing instruction is an inverse editinginstruction for the emoji picture, the first communications clientdevice can perform inverse editing on the emoji picture based theediting instruction, and obtain an edited emoji picture. The editedemoji picture is the inverse of the emoji picture.

Step 204: The first communications client device sends the edited emojipicture to the second communications client device.

In step 204, after obtaining the edited emoji picture, the firstcommunications client device can send the edited emoji picture to thesecond communications client device, to communicate with the secondcommunications client device by using the picture.

In this implementation of the present application, based on the sessionwindow described in step 201, if the session window is the sessionwindow where the first communications client device performs one-to-oneinteraction with the second communications client device, the firstcommunications client device can send the edited emoji picture to thesecond communications client device only. If the session window is thesession window of the group, the first communications client device cansend the edited emoji picture not only to the second communicationsclient device but also to other communications clients in the group.

It is worthwhile to note that, when sending the edited emoji picture,the first communications client device can directly send the editedemoji picture without performing another redundant operation. Forexample, after obtaining the inverse emoji picture, the firstcommunications client device can directly send the inverse emojipicture, and display the inverse emoji picture in the session window,and the user does not need to download the unedited emoji picture ordetermine whether to send the edited emoji picture. Therefore, useroperations can be simplified, and it is relatively convenient to sendthe edited emoji picture.

In another implementation of the present application, after obtainingthe edited emoji picture, the first communications client device candisplay the edited emoji picture in the session window, so that the userwho uses the first communications client device previews the editedemoji picture, and determines, based on the previewed edited emojipicture, whether to send the edited emoji picture.

Therefore, if the edited emoji picture satisfies a need of the user, theuser can determine to send the edited emoji picture. The firstcommunications client device can send the edited emoji picture to thesecond communications client device. If the edited emoji picture doesnot satisfy the need of the user, the user can determine not to send theedited emoji picture. The first communications client device can cancelsending of the edited emoji picture to the second communications clientdevice. As such, the user determines whether to send the edited emojipicture to further improve user experience.

In addition, when displaying the edited emoji picture in the sessionwindow, the first communications client device can further allow theuser who uses the first communications client device to set an attributeof the edited emoji picture, for example, the user can set a color, asize, or an editing degree of the edited emoji picture.

After the user sets the attribute of the edited emoji picture, the usercan determine whether to send the specified emoji picture, and the firstcommunications client device can determine, based on the choice of theuser, whether to send the specified emoji picture.

The user can set the edited emoji picture, so that the firstcommunications client device can send the specified emoji picture.Therefore, there can be diverse emoji picture sending methods, so as tofurther improve user experience.

In actual application, it can be determined, based on an actualsituation, whether the user is allowed to preview the edited emojipicture. It is not specifically limited in this implementation of thepresent application. If the user is allowed to preview the edited emojipicture, it can be further determined, based on an actual situation,whether the user is allowed to set the attribute of the edited emojipicture. It is not specifically limited in this implementation of thepresent application either.

It is worthwhile to note that, in an actual application scenario, theedited emoji picture can be a response to the received emoji picture.After viewing the emoji picture, the user who uses the firstcommunications client device can use the edited emoji picture to respondto the user who uses the second communications client device. Based onthe technical solution provided in this implementation of the presentapplication, interaction between users can be increased by using emojipictures and can bring more fun.

In the technical solution provided in this implementation of the presentapplication, when sending an emoji picture, a user can edit a receivedemoji picture in the session window, and then send an edited emojipicture. Because the user can edit and then send the emoji picture,compared with the existing technology, there can be diverse emojipicture sending methods, so as to effectively improve user experience.

In addition, because the user can send a received emoji picture withoutdownloading the emoji picture, user operations can be simplified, and itis more convenient for the user to send the emoji picture.

Implementation 2

FIG. 3 to FIG. 6 are schematic diagrams illustrating aninstant-messaging-based emoji picture sending method according to thisimplementation of the present application. The schematic diagramsillustrating the picture sending method described in FIG. 3 to FIG. 6can be implemented by using the picture sending method described in theimplementation shown in FIG. 2.

In an application scenario of this implementation of the presentapplication, user A sends an emoji picture to user B, and user B sendsan emoji picture to user A based on the received emoji picture.Specifically:

Step 1: The user B receives an emoji picture a sent by user A.

As shown in FIG. 3, user A can send the emoji picture a to user B byusing communications software, and user B can receive the emoji picturea by using a communications software client, and display the emojipicture a in a session window for user B.

Step 2: When user B wants to send an emoji picture to user A, user B canperform a specified operation on the received emoji picture a.

As shown in FIG. 3, the user can touch and hold the emoji picture a. Thecommunications software client used by user B can display editingoptions for the emoji picture a in the session window based on the touchand hold operation of user B, and the displayed editing options areshown in FIG. 4.

In FIG. 4, the editing options for the emoji picture a can be displayedat a floating layer, and the editing options can include inverse,blurring, and deformation. The user B can select one option based on aneed of user B. For example, if user B wants to send an emoji picturethat is the inverse of the emoji picture a, user B can select the“inverse” editing option.

Step 3: A communications software client used by user B edits the emojipicture a based on an editing option selected by user B, and sends anedited emoji picture to a communications software client used by user A.

After user B chooses to perform “inverse” editing on the emoji picturea, the communications software client used by user B can perform inverseediting on the emoji picture a based on the choice of user B, to obtainan emoji picture a1, and the emoji picture a1 is the inverse of theemoji picture a.

After obtaining the emoji picture a1, the communications software clientused by user B can directly send the emoji picture a1 to thecommunications software client used by user A, and display the emojipicture a1 in the session window for user B, as shown in FIG. 5.

In an actual application scenario, a “dog head” in the emoji picture a1sent by user B looks at a profile picture of user A. An object (user A)“despised” by the “dog head” in the emoji picture a1 is consistent withuser A that the “dog head” looks at. Therefore, user B can vividlyexpress “contempt” for user A by using the emoji picture a1, to respondto user A.

In addition, if user B selects the “blurring” editing option for theemoji picture in step 2, the communications software client used by theuser can perform blurring editing on the emoji picture a based on thechoice of user B, to obtain an emoji picture a2, and the emoji picturea2 is a blurred picture of the emoji picture a (a blurring degree of theemoji picture a2 can be a default blurring degree).

After obtaining the emoji picture a2, the communications software clientused by user B can directly send the emoji picture a2 to thecommunications software client used by user A, and display the emojipicture a2 in the session window for user B, as shown in FIG. 6. In anactual application scenario, user B can more effectively remind user Ato put down a mobile phone by using the emoji picture a2.

It can be seen from FIG. 3 to FIG. 6 that, after receiving an emojipicture sent by user A, if user B wants to send the received emojipicture to user A, user B can send the emoji picture without downloadingthe emoji picture. Compared with the existing technology, where a userneeds to download an emoji picture before sending the emoji picture,operations of user B can be simplified. In addition, user B can furtheredit the emoji picture based on a need of user B, and send an editedemoji picture to user A, so as to diversify emoji picture sendingmethods, and effectively improve user experience of user B.

It is worthwhile to note that, in an existing-technology example whereuser A communicates with user B by using communications software, afterreceiving an emoji picture sent by user B, user A can touch and hold theemoji picture to pop up a shortcut menu, and can select an operation forthe emoji picture from the pop-up menu option, such as saving, deleting,or forwarding. If user A wants to send the emoji picture to user B, userA can forward the emoji picture to user B.

However, when user A forwards the emoji picture to user B, if user A hasnot downloaded the emoji picture, user A can send the emoji picture touser B only after downloading the emoji picture, and consequentlyoperation steps of user A are relatively tedious. If user A hasdownloaded the emoji picture, user A can send the emoji picture onlybased on a specified pattern of the emoji picture. When the user needsto send the emoji picture in another pattern, it is obvious that theexisting technology cannot satisfy the need of user A, and consequentlyuser experience is poor.

In this implementation of the present application, when receiving theemoji picture sent by user B, user A can touch and hold the emojipicture, etc. to pop up the editing options, and edit the emoji picturebased on the editing options. After obtaining the edited emoji picture,user A can directly send the edited emoji picture to user B withoutanother redundant operation. As such, not only user operations can besimplified because the emoji picture does not need to be downloaded, butalso there can be diverse emoji picture sending methods.

Implementation 3

FIG. 7 is a schematic flowchart illustrating an instant-messaging-basedpicture sending method according to this implementation of the presentapplication. The method is described below. This implementation of thepresent application can be performed by a first communications clientdevice.

It is worthwhile to note that, the instant-messaging-based picturesending method provided in this implementation of the presentapplication is different from the picture sending methods in theimplementations described in FIG. 2 and FIG. 3 to FIG. 6 in terms ofapplication scenario. Application scenarios of this implementation ofthe present disclosure include the application scenarios of theimplementations described in FIG. 2 and FIG. 3 to FIG. 6.

Pictures sent by using the instant-messaging-based picture sendingmethod provided in this implementation of the present applicationinclude but are not limited to emoji pictures. Sending an emoji picturecan be used as an example for describing this implementation of thepresent application.

Step 701: The first communications client device determines a targetpicture.

In step 701, a user can use the first communications client device tocommunicate with another user by using communications software. Duringthe communication, if the user wants to send a picture to the otheruser, the first communications client device can determine the targetpicture.

In this implementation of the present application, the firstcommunications client device can determine the target picture by usingat least the following three methods:

Method 1: The first communications client device receives a picture sentby a second communications client device, and determines the picturesent by the second communications client device as the target picture.

Specifically, when the user who uses the first communications clientdevice communicates with a user who uses the second communicationsclient device by using communications software, the secondcommunications client device can send a picture to the firstcommunications client device, and the first communications client devicecan receive the picture sent by the second communications client device.The first communications client device can display the received picturein a session window, where the first communications client deviceinteracts with the second communications client device, and use thereceived picture as the target picture.

Method 2: The first communications client device determines a picturethat has been sent to a second communications client device, anddetermines the sent picture as the target picture.

Specifically, when the user who uses the first communications clientdevice communicates with a user who uses the second communicationsclient device by using communications software, the first communicationsclient device can send a picture to the second communications clientdevice, and use the sent picture as the target picture after sending thepicture and displaying the picture in a session window.

Method 3: The first communications client device determines a pictureincluded in a picture library, and determines the picture as the targetpicture.

Specifically, when the user who uses the first communications clientdevice communicates with a user who uses a second communications clientdevice by using communications software, when the user who uses thefirst communications client device wants to send a picture, the firstcommunications client device can display a picture library, and use apicture included in the picture library as the target picture.

It is worthwhile to note that, in an actual application scenario forMethod 1, after receiving a picture sent by the user who uses the secondcommunications client device, the user who uses the first communicationsclient device wants to send the received picture to the user who usesthe second communications client device.

In an actual application scenario for Method 2, after sending a pictureto the user who uses the second communications client device, the userwho uses the first communications client device wants to send the sentpicture again to the user who uses the second communications clientdevice.

In an actual application scenario for Method 3, the user who uses thefirst communications client device wants to select a picture from thepicture library, and send the picture to the user who uses the secondcommunications client device.

In this implementation of the present application, for the previousthree application scenarios, the session window can be a session windowwhere the first communications client device interacts with the secondcommunications client device (the first communications client deviceperforms one-to-one interaction with the second communications clientdevice), or a session window where the first communications clientdevice interacts with the second communications client device and othercommunications clients (the session window is a session window of agroup, and the first communications client device and the secondcommunications client device belong to the group). It is notspecifically limited.

The first communications client device can perform step 202 afterdetermining the target picture.

Step 702: The first communications client device receives an editinginstruction for the target picture.

In step 702, after determining the target picture, the firstcommunications client device can receive the editing instruction, forthe target picture, from the user who uses the first communicationsclient device, so that the first communications client device edits thetarget picture.

In this implementation of the present application, the editinginstruction can be used for editing the target picture. Specifically,the editing instruction can be an editing instruction for changing aspecified pattern of the target picture, for example, a mirroringediting instruction for the target picture, a blurring editinginstruction for the target picture, a deformation editing instructionfor the target picture, or a rotation instruction for the targetpicture. It is not specifically limited in this implementation of thepresent application.

That the first communications client device receives an editinginstruction for the target picture can include: monitoring, by the firstcommunications client device, an operation performed by a user on thetarget picture, where the user is a user who uses the firstcommunications client device; when detecting that the user performs aspecified operation on the target picture, displaying, by the firstcommunications client device, editing options for editing the targetpicture in the session window; and receiving, by the firstcommunications client device, the editing instruction for the targetpicture from the user, where the editing instruction is obtained by theuser by selecting one editing option.

In other words, after determining the target picture, the firstcommunications client device can monitor in real time whether the userwho uses the first communications client device performs the specifiedoperation on the target picture, and if the first communications clientdevice detects that the user performs the specified operation on thepicture, the first communications client device can display, based onthe specified operation, the editing options for editing the targetpicture in the session window.

The specified operation can be a tap/click operation for the targetpicture, a double-tap/click operation for the target picture, a touchand hold operation for the target picture, etc.

The editing options can include an option for editing the targetpicture. For example, the option can be performing inverse editing onthe target picture, performing blurring editing on the target picture,performing deformation editing on the target picture, or performingrotation editing on the target picture.

The editing options can be displayed at a floating layer in the sessionwindow, or can be displayed in a drop-down menu in the session window.Specifically, the editing options can be displayed on the upper right ofthe target picture, or displayed on the lower right of the targetpicture, provided that the location is convenient for the user to selectan option included in the editing options.

After the first communications client device displays the editingoptions, the user who uses the first communications client device canview the editing options. The user can select one option based on a needof the user.

After the user selects the option from the editing options, it can beconsidered that the user sends the editing instruction for the targetpicture to the first communications client device. The firstcommunications client device can receive the editing instruction.

The first communications client device can perform step 703 afterreceiving the editing instruction for the target picture in the methoddescribed above.

Step 703: The first communications client device edits the picture in asession window based on the editing instruction, to obtain an editedpicture.

In step 703, after receiving the editing instruction, the firstcommunications client device can edit the target picture based on theediting instruction in the session window, where the firstcommunications client device interacts with the second communicationsclient device, to obtain the edited picture.

Step 704: The first communications client device sends the editedpicture in the session window.

In step 704, after obtaining the edited picture, the firstcommunications client device can directly send the edited picture to thesecond communications client device, to communicate with the secondcommunications client device by using the picture.

When sending the target picture to the user who uses the secondcommunications client device, the user who uses the first communicationsclient device can edit the target picture, and send the edited picture.Therefore, there can be diverse picture sending methods, and a need ofthe user for sending a picture can be satisfied, so as to effectivelyimprove user experience.

In another implementation provided in the present application, after thefirst communications client device obtains the edited picture and beforethe first communications client device sends the edited picture, themethod further includes: displaying the edited picture, so that the userpreviews the edited picture.

In this implementation of the present application, after obtaining theedited picture, the first communications client device can display theedited picture at the first communications client device, so that theuser who uses the first communications client device can preview theedited picture.

In addition, when displaying the edited picture, the firstcommunications client device can further display a button used by theuser to determine whether to send the edited picture. The user candetermine, based on a preview result, whether to send the editedpicture, and when determining to send the edited picture, send anacknowledgment instruction to the first communications client device byusing the button. The first communications client device can receive theacknowledgment instruction, and send the edited picture to the secondcommunications client device based on the acknowledgment instruction.

Because the user determines whether to send the edited picture, apicture that does not satisfy a need of the user can be prevented frombeing sent, and user experience can be improved.

In another implementation of the present application, when the firstcommunications client device displays the edited picture, the methodfurther includes: displaying a setting option to the user, where thesetting option is used by the user to set an attribute of the editedpicture; receiving a setting instruction sent by the user, where thesetting instruction is obtained by the user by selecting the settingoption; and setting the edited picture in the session window based onthe setting instruction, to obtain a specified picture.

In this implementation of the present application, when displaying theedited picture, the first communications client device can furtherdisplay the setting option for the edited picture. The setting optioncan include an option for setting the attribute of the edited picture.The setting option can include setting a color, a size, an editingdegree of the edited picture.

For example, if the editing instruction received by the firstcommunications client device is a blurring operation instruction for thetarget picture, after the first communications client device obtains ablurred picture (the target picture can be processed based on a defaultblurring degree), the setting option can include a blurring degreeoption. The setting option can be used for setting a blurring degree ofthe blurred picture.

In addition, the setting option can further include an option forsetting a color of the blurred picture, so that the user can set boththe blurring degree and the color of the blurred picture.

After the user makes a choice based on the setting option, it can beconsidered that the user sends the setting instruction for the editedpicture to the first communications client device. The firstcommunications client device can receive the setting instruction, andset the edited picture based on the setting instruction, to obtain thespecified picture.

That the first communications client device sends the specified pictureto the second communications client device after obtaining the specifiedpicture includes: receiving, by the first communications client device,an acknowledgment instruction sent by the user, where the acknowledgmentinstruction is sent by the user after the user previews the editedpicture; and sending, by the first communications client device, theedited picture in the session window based on the acknowledgmentinstruction.

In this implementation of the present application, when the firstcommunications client device sets the edited picture based on thesetting instruction, the first communications client device can displaythe specified picture to the user in real time, so that the user canpreview the specified picture in real time, and determine, based on thepreviewed picture, whether to send the picture to the secondcommunications client device.

After determining, based on a preview result, to send the picture to thesecond communications client device, the user can send theacknowledgment instruction to the first communications client device byusing the button described above. The first communications client devicecan receive the acknowledgment instruction, and send the specifiedpicture in the session window based on the acknowledgment instruction.

Specifically, if the session window is the session window where thefirst communications client device performs one-to-one interaction withthe second communications client device, the first communications clientdevice can send the specified picture to the second communicationsclient device. If the session window is the session window of the groupincluding the first communications client device and the secondcommunications client device, the first communications client devicesends the specified picture not only to the second communications clientdevice but also to other communications clients in the group.

Because the user can set the edited emoji picture, there can be diverseemoji picture sending methods, and user experience is further improved.

In the technical solution provided in this implementation of the presentapplication, when sending an emoji picture, the user can edit, in thesession window, the emoji picture that needs to be sent, and send anedited emoji picture to another user. Compared with the existingtechnology, there can be diverse emoji picture sending methods, so as toeffectively improve user experience.

Implementation 4

FIG. 8 is a schematic flowchart illustrating anotherinstant-messaging-based picture sending method according to thisimplementation of the present application. The method is describedbelow. This implementation of the present application can be performedby a first communications client device. The picture sent by using thepicture sending method provided in this implementation of the presentapplication is an emoji picture.

It is worthwhile to note that, an application scenario of thisimplementation of the present application can be the applicationscenario corresponding to Method 1 in step 701 in the implementationdescribed in FIG. 7. After receiving an emoji picture sent by a user whouses a second communications client device, a user who uses the firstcommunications client device wants to send, in response, the receivedemoji picture to the user who uses the second communications clientdevice.

The picture sending method provided in this implementation of thepresent application specifically includes steps below.

Step 801: The first communications client device receives an emojipicture sent by a second communications client device.

After receiving the emoji picture, the first communications clientdevice can display the emoji picture in a session window. The sessionwindow is a session window where the first communications client deviceinteracts with the second communications client device.

Step 802: The first communications client device monitors whether a userperforms a specified operation on the emoji picture.

In step 802, the specified operation can be a tap/click operation forthe emoji picture, a double-tap/click operation for the emoji picture, atouch and hold operation for the emoji picture, etc.

If the first communications client device detects that an operationperformed by the user on the emoji picture is the specified operation,the first communications client device can perform step 803; otherwise,the first communications client device can cyclically perform step 802.

Step 803: The first communications client device displays editingoptions for editing the emoji picture in a session window.

The editing options can be displayed at a floating layer in the sessionwindow. The editing options can include an option for editing the emojipicture. For example, the option can be performing inverse editing onthe emoji picture, performing blurring editing on the emoji picture,performing deformation editing on the emoji picture, or performingrotation editing on the emoji picture.

Step 804: The first communications client device receives an editinginstruction for the emoji picture from the user.

The editing instruction is obtained by the user selecting one editingoption.

Step 805: The first communications client device edits the emoji picturein the session window based on the editing instruction, to obtain anedited emoji picture.

Step 806: The first communications client device displays the editedemoji picture and a setting option for an attribute of the edited emojipicture.

The setting option can be used by the user to set the attribute of theedited emoji picture. The setting option can include an option forsetting the attribute of the edited emoji picture.

Step 807: The first communications client device receives a settinginstruction sent by the user.

The setting instruction can be obtained by the user by selecting thesetting option.

Step 808: The first communications client device sets the edited emojipicture in the session window based on the setting instruction, toobtain a specified emoji picture.

In step 808, after obtaining the specified emoji picture, the firstcommunications client device can display the specified emoji picture tothe user, so that the user previews the specified emoji picture.

Step 809: The first communications client device receives anacknowledgment instruction sent by the user.

The acknowledgment instruction is sent by the user after the userpreviews the specified emoji picture.

Step 810: The first communications client device sends the specifiedemoji picture to the second communications client device based on theacknowledgment instruction.

In the picture sending method provided in this implementation of thepresent application, after receiving an emoji picture sent by the userwho uses the second communications client device, if the user who usesthe first communications client device wants to send the received emojipicture to the user who uses the second communications client device,the user who uses the first communications client device can edit theemoji picture, and the first communications client device sends anedited emoji picture to the second communications client device.Therefore, the user who uses the first communications client device cansend the emoji picture without downloading the emoji picture. Inaddition, the user edits the emoji picture, and sends the edited emojipicture, so that there can be diverse emoji picture sending methods, anduser experience can be effectively improved.

Implementation 5

FIG. 9 is a schematic flowchart illustrating anotherinstant-messaging-based picture sending method according to thisimplementation of the present application. The method is describedbelow. This implementation of the present application can be performedby a first communications client device.

Step 901: The first communications client device determines a targetpicture.

In step 901, a user can use the first communications client device tocommunicate with another user by using communications software. Duringthe communication, if the user wants to send a picture to the otheruser, the first communications client device can determine the targetpicture.

In this implementation of the present application, the target pictureincludes an emoji picture. The first communications client device candetermine the target picture by using the content described in step 701in the implementation shown in FIG. 7. Details are not described hereagain.

Step 902: The first communications client device edits the targetpicture in a session window based on attribute information of a user,who uses the first communications client device, to obtain an editedpicture.

The session window is a session window where the first communicationsclient device interacts with another communications client, or a sessionwindow where the first communications client device interacts with othercommunications clients.

In step 902, after determining the target picture and before sending thetarget picture, the first communications client device can determine theattribute information of the user who uses the first communicationsclient device.

In this implementation of the present application, the attributeinformation of the user who uses the first communications client deviceincludes: location information of the user in the session window (forexample, in FIG. 5, location information of user B is that user B is ona right side of the session window), chat content between the user andanother user, mood of the user (which can be determined by the chatcontent of the user), etc.

After determining the attribute information of the user, the firstcommunications client device can automatically edit the target picturebased on the attribute information in the session window, to obtain theedited picture. Therefore, the user can obtain the edited picturewithout triggering an editing operation for the target picture.

FIG. 5 is used as an example. The user B corresponds to the firstcommunications client device. After determining that the target pictureis a picture a, and before sending the picture a to user A, the firstcommunications client device can automatically edit the picture a basedon the location information of user B (on the right side of the sessionwindow). A looking direction of a “dog head” in an edited picture a1changes from right to left, so as to express “contempt” of user B foruser A by using the picture a1. The first communications client devicecan automatically edit the picture a to obtain the picture a1, based onthe location information of user B without triggering an editingoperation for the picture a from user B, so that not only there can bediverse picture sending methods, but operations of user B areeffectively simplified.

Step 903: The first communications client device sends the editedpicture in the session window.

In step 903, after obtaining the edited picture, the firstcommunications client device can send the edited picture in the sessionwindow.

In another implementation provided in the present application, beforesending the edited picture, the first communications client device candisplay the edited picture to the user who uses the first communicationsclient device, so that the user previews the edited picture. Inaddition, after the user previews the edited picture, the firstcommunications client device can further allow the user to set attributeinformation of the edited picture. A specific method can be the same asthe method described in step 704 in the implementation shown in FIG. 7,and details are not described here again.

In the technical solution provided in this implementation of the presentapplication, after determining the target picture and before sending thetarget picture, the first communications client device can automaticallyedit the target picture based on the attribute information of the userwho uses the first communications client device, and send the editedpicture. Because the first communications client device canautomatically edit the target picture based on the attribute informationof the user, and then send the edited picture, there can be diversetarget-picture sending methods, and user experience can be effectivelyimproved. In addition, because the first communications client devicecan automatically edit the target picture based on the attributeinformation of the user without triggering an editing operation for thetarget picture from the user, user operations can be effectivelysimplified.

Implementation 6

FIG. 10 is a schematic structural diagram illustrating an electronicdevice according to this implementation of the present application. Asshown in FIG. 10, in terms of hardware, the electronic device includes aprocessor, an internal bus, a network interface, a memory, anon-volatile memory, and certainly can further include hardware neededby other services. The processor reads a corresponding computer programfrom the non-volatile memory and then runs the program in the memory, tologically form an instant-messaging-based emoji picture sending device.In addition to a software implementation, the present application doesnot exclude another implementation, for example, a logic device or acombination of software and hardware. In other words, an entity forexecuting the following processing procedure is not limited to logicalunits, and can be hardware or a logical component.

FIG. 11 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending device according to thisimplementation of the present application. The picture sending deviceincludes a picture sending unit 1101, an instruction receiving unit1102, an editing unit 1103, and a sending unit 1104.

The picture receiving unit 1101 receives an emoji picture sent by asecond communications client device.

The instruction receiving unit 1102 receives an editing instruction forthe emoji picture.

The editing unit 1103 edits the emoji picture based on the editinginstruction in a session window where a first communications clientdevice interacts with the second communications client device, to obtainan edited emoji picture.

The sending unit 1104 sends the edited emoji picture to the secondcommunications client device.

That the instruction receiving unit 1102 receives an editing instructionfor the emoji picture includes: when detecting a specified operationperformed by a user on the emoji picture, displaying editing options forediting the emoji picture in the session window, where the specifiedoperation includes a tap/click operation, a double-tap/click operation,or a touch and hold operation; and receiving the editing instruction forthe emoji picture, where the editing instruction is obtained by the userby selecting one editing option.

The editing options are displayed at a floating layer or in a drop-downmenu in the session window, and the editing options include at least oneof inverse, blurring, deformation, and rotation.

FIG. 12 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending apparatus according tothis implementation of the present application. An apparatus 1200 caninclude a channel interface 1201, a processor 1202, and optionallyinclude a memory 1203.

The channel interface 1201, the processor 1202, and the memory 1203 canbe connected to each other by using a bus 1204. The bus 1204 can be anIndustry Standard Architecture (ISA) bus, a Peripheral ComponentInterconnect (PCI) bus, an Extended Industry Standard Architecture(EISA) bus, etc. The buses can be classified into an address bus, a databus, a control bus, etc. For ease of representation, the bus isrepresented by using only a bidirectional arrow in FIG. 12, but it doesnot indicate that there is only one bus or only one type of bus.

Optionally, the memory 1203 is configured to store a program. Theprogram can include program code, and the program code includes acomputer operation instruction. The memory 1203 can include a read-onlymemory and a random access memory, and provide an instruction and datafor the processor 1202. The memory 1203 can include a high-speed randomaccess memory (RAM), and can further include a non-volatile memory(non-volatile memory), such as at least one disk memory.

The processor 1202 is configured to perform the following operations.Optionally, the processor 1202 executes the program stored in the memory1203, and specifically performs the following operations: receiving anemoji picture sent by a second communications client device; receivingan editing instruction for the emoji picture; editing the emoji picturebased on the editing instruction in a session window, where a firstcommunications client device interacts with the second communicationsclient device, to obtain an edited emoji picture; and sending the editedemoji picture to the second communications client device.

The previous methods, disclosed in the implementations shown in FIG. 2,FIG. 3 to FIG. 6, and FIG. 10 and FIG. 11 in the present application,performed by an instant-messaging-based emoji picture sending device ora master node can be applied to the processor 1202, or be implemented bythe processor 1202. The processor 1202 can be an integrated circuitchip, and has a signal processing capability. In an implementationprocess, the steps in the previous methods can be completed by using anintegrated logic circuit of hardware in the processor 1202 or by usingan instruction in a software form. The processor 1202 can be a generalpurpose processor, including a central processing unit (CPU), a networkprocessor (NP), etc.; can be a digital signal processor (DSP), anapplication-specific integrated circuit (ASIC), a field programmablegate array (FPGA); or another programmable logic device, a discrete gateor a transistor logic device, a discrete hardware component, etc. Theprocessor 1202 can implement or perform the methods, steps, and logicalblock diagrams disclosed in the implementations of the presentapplication. The general purpose processor can be a microprocessor, orany conventional processor, etc. The steps of the methods disclosed withreference to the implementations of the present application can bedirectly performed by a hardware decoding processor, or performed by acombination of hardware and software modules in a decoding processor.The software module can be located in a mature storage medium in theart, such as a random access memory, a flash memory, a read-only memory,a programmable read-only memory or an electrically erasable programmablememory, or a register. The storage medium is located in the memory 1203,and the processor 1202 reads information from the memory 1203 andcompletes the steps in the previous methods in combination with thehardware of the processor 1202.

The instant-messaging-based emoji picture sending apparatus 1200 canfurther perform the method in FIG. 2, and implement the method performedby the master node.

This implementation of the present application further provides acomputer readable storage medium. The computer readable storage mediumstores one or more programs, and the one or more programs include aninstruction. When the instruction is executed by a portable electronicdevice that includes a plurality of application programs, the portableelectronic device can perform the method described in FIG. 2.

Implementation 7

FIG. 13 is a schematic structural diagram illustrating an electronicdevice according to this implementation of the present application.

The structural diagram of the electronic device described in thisimplementation of the present disclosure can be the same as thestructural diagram of the electronic device shown in FIG. 10. Detailsare not described here again.

FIG. 14 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending device according to thisimplementation of the present application. The picture sending deviceincludes a picture receiving unit 1401, an instruction receiving unit1402, an editing unit 1403, and a sending unit 1404.

The picture receiving unit 1401 receives, in a session window, an emojipicture sent by a second communications client device, where the sessionwindow is a session window of a group.

The instruction receiving unit 1402 receives an editing instruction forthe emoji picture.

The editing unit 1403 edits the emoji picture in the session windowbased on the editing instruction, to obtain an edited emoji picture.

The sending unit 1404 sends the edited emoji picture in the sessionwindow.

FIG. 15 is a schematic structural diagram illustrating aninstant-messaging-based emoji picture sending apparatus according tothis implementation of the present application. An apparatus 1500 caninclude a channel interface 1501, a processor 1502, and optionallyinclude a memory 1503.

The channel interface 1501, the processor 1502, and the memory 1503 canbe connected to each other by using a bus 1504. The bus 1504 can be anIndustry Standard Architecture (ISA) bus, a Peripheral ComponentInterconnect (PCI) bus, an Extended Industry Standard Architecture(EISA) bus, etc. The buses can be classified into an address bus, a databus, a control bus, etc. For ease of representation, the bus isrepresented by using only a bidirectional arrow in FIG. 15, but it doesnot indicate that there is only one bus or only one type of bus.

Optionally, the memory 1503 is configured to store a program. Theprogram can include program code, and the program code includes acomputer operation instruction. The memory 1503 can include a read-onlymemory and a random access memory, and provide an instruction and datafor the processor 1502. The memory 1503 can include a high-speed randomaccess memory (RAM), and can further include a non-volatile memory(non-volatile memory), such as at least one disk memory.

The processor 1502 is configured to perform the following operations.Optionally, the processor 1502 executes the program stored in the memory1503, and specifically performs the following operations: receiving, ina session window, an emoji picture sent by a second communicationsclient device, where the session window is a session window of a group;receiving an editing instruction for the emoji picture; editing theemoji picture in the session window based on the editing instruction, toobtain an edited emoji picture; and sending the edited emoji picture inthe session window.

The previous methods, disclosed in the implementations shown in FIG. 2,FIG. 3 to FIG. 6, and FIG. 13 and FIG. 14 in the present application,performed by an instant-messaging-based emoji picture sending device ora master node can be applied to the processor 1502, or be implemented bythe processor 1502. The processor 1502 can be an integrated circuitchip, and has a signal processing capability. In an implementationprocess, the steps in the previous methods can be completed by using anintegrated logic circuit of hardware in the processor 1502, or by usingan instruction in a software form. The processor 1502 can be a generalpurpose processor, including a central processing unit (CPU), a networkprocessor (NP), etc.; can be a digital signal processor (DSP), anapplication-specific integrated circuit (ASIC), a field programmablegate array (FPGA); or another programmable logic device, a discrete gateor a transistor logic device, a discrete hardware component, etc. Theprocessor 1502 can implement or perform the methods, steps, and logicalblock diagrams disclosed in the implementations of the presentapplication. The general purpose processor can be a microprocessor, orany conventional processor, etc. The steps of the methods disclosed withreference to the implementations of the present application can bedirectly performed by a hardware decoding processor, or performed by acombination of hardware and software modules in a decoding processor.The software module can be located in a mature storage medium in theart, such as a random access memory, a flash memory, a read-only memory,a programmable read-only memory or an electrically erasable programmablememory, or a register. The storage medium is located in the memory 1503,and the processor 1502 reads information from the memory 1503 andcompletes the steps in the previous methods in combination with thehardware of the processor 1502.

The instant-messaging-based emoji picture sending apparatus 1500 canfurther perform the method in FIG. 2, and implement the method performedby the master node.

This implementation of the present application further provides acomputer readable storage medium. The computer readable storage mediumstores one or more programs, and the one or more programs include aninstruction. When the instruction is executed by a portable electronicdevice that includes a plurality of application programs, the portableelectronic device can perform the method described in FIG. 2.

Implementation 8

FIG. 16 is a schematic structural diagram illustrating an electronicdevice according to this implementation of the present application.

The electronic device provided in this implementation of the presentapplication logically forms an instant-messaging-based picture sendingdevice. Other structures are the same as the electronic device shown inFIG. 10, and details are not described here again.

FIG. 17 is a schematic structural diagram illustrating aninstant-messaging-based picture sending device according to thisimplementation of the present application. The picture sending deviceincludes a determining unit 1701, a receiving unit 1702, an editing unit1703, and a sending unit 1704.

The determining unit 1701 determines a target picture.

The receiving unit 1702 receives an editing instruction for the targetpicture.

The editing unit 1703 edits the target picture in a session window basedon the editing instruction, to obtain an edited picture, where thesession window is a session window, where a first communications clientdevice interacts with another communications client, or a session windowwhere a first communications client device interacts with othercommunications clients.

The sending unit 1704 sends the edited picture in the session window.

That the determining unit 1701 determines a target picture includes:receiving a picture sent by a second communications client device, anddetermining the picture sent by the second communications client deviceas the target picture; or determining a picture that has been sent to asecond communications client device, and determining the sent picture asthe target picture; or determining a picture included in a picturelibrary, and determining the picture as the target picture.

That the receiving unit 1702 receives an editing instruction for thetarget picture includes: monitoring an operation performed by a user onthe target picture, where the user is a user who uses the firstcommunications client device; when detecting that the user performs aspecified operation on the target picture, displaying editing optionsfor editing the target picture in the session window; and receiving theediting instruction for the target picture from the user, where theediting instruction is obtained by the user by selecting one editingoption.

In this implementation of the present application, the specifiedoperation detected by the receiving unit 1702 includes a tap/clickoperation, a double-tap/click operation, or a touch and hold operation.

The editing options are displayed at a floating layer or in a drop-downmenu in the session window, and the editing options include at least oneof inverse, blurring, deformation, and rotation.

In another implementation of the present application, the picturesending device further includes a preview unit 1705.

The preview unit 1705 displays the edited picture after the editing unit1703 obtains the edited picture and before the sending unit 1704 sendsthe edited picture, so that the user previews the edited picture.

In another implementation of the present application, that the previewunit 1705 displays the edited picture includes: displaying a settingoption to the user, where the setting option is used by the user to setan attribute of the edited picture; receiving a setting instruction sentby the user, where the setting instruction is obtained by the user byselecting the setting option; and setting the edited picture in thesession window based on the setting instruction, to obtain a specifiedpicture.

That the sending unit 1704 sends the edited picture in the sessionwindow includes: receiving an acknowledgment instruction sent by theuser, where the acknowledgment instruction is sent by the user after theuser previews the edited picture; and sending the edited picture basedon the acknowledgment instruction in the session window.

FIG. 18 is a schematic structural diagram illustrating aninstant-messaging-based picture sending apparatus according to thisimplementation of the present application. An apparatus 1800 can includea channel interface 1801, a processor 1802, and optionally include amemory 1803.

The channel interface 1801, the processor 1802, and the memory 1803 canbe connected to each other by using a bus 1804. The bus 1804 can be anIndustry Standard Architecture (ISA) bus, a Peripheral ComponentInterconnect (PCI) bus, an Extended Industry Standard Architecture(EISA) bus, etc. The buses can be classified into an address bus, a databus, a control bus, etc. For ease of representation, the bus isrepresented by using only a bidirectional arrow in FIG. 18, but it doesnot indicate that there is only one bus or only one type of bus.

Optionally, the memory 1803 is configured to store a program. Theprogram can include program code, and the program code includes acomputer operation instruction. The memory 1803 can include a read-onlymemory and a random access memory, and provide an instruction and datafor the processor 1802. The memory 1803 can include a high-speed randomaccess memory (RAM), and can further include a non-volatile memory(non-volatile memory), for example, at least one disk memory.

The processor 1802 is configured to perform the following operations.Optionally, the processor 1802 executes the program stored in the memory1803, and specifically performs the following operations: determining atarget picture; receiving an editing instruction for the target picture;editing the target picture in a session window based on the editinginstruction, to obtain an edited picture, where the session window is asession window where a first communications client device interacts withanother communications client, or a session window, where a firstcommunications client device interacts with other communicationsclients; and sending the edited picture in the session window.

The previous methods, disclosed in the implementations shown in FIG. 7and FIG. 16 and FIG. 17 in the present application, performed by aninstant-messaging-based picture sending device or a master node can beapplied to the processor 1802, or be implemented by the processor 1802.The processor 1802 can be an integrated circuit chip, and has a signalprocessing capability. In an implementation process, the steps in theprevious methods can be completed by using an integrated logic circuitof hardware in the processor 1802, or by using an instruction in asoftware form. The processor 1802 can be a general purpose processor,including a central processing unit (CPU), a network processor (NP),etc.; can be a digital signal processor (DSP), an application-specificintegrated circuit (ASIC), a field programmable gate array (FPGA); oranother programmable logic device, a discrete gate or a transistor logicdevice, a discrete hardware component, etc. The processor 1802 canimplement or perform the methods, steps, and logical block diagramsdisclosed in the implementations of the present application. The generalpurpose processor can be a microprocessor, or any conventionalprocessor, etc. The steps of the methods disclosed with reference to theimplementations of the present application can be directly performed bya hardware decoding processor, or performed by a combination of hardwareand software modules in a decoding processor. The software module can belocated in a mature storage medium in the art, such as a random accessmemory, a flash memory, a read-only memory, a programmable read-onlymemory or an electrically erasable programmable memory, or a register.The storage medium is located in the memory 1803, and the processor 1802reads information from the memory 1803 and completes the steps in theprevious methods in combination with the hardware of the processor 1802.

The instant-messaging-based picture sending apparatus 1800 can furtherperform the method in FIG. 7, and implement the method performed by themaster node.

This implementation of the present application further provides acomputer readable storage medium. The computer readable storage mediumstores one or more programs, and the one or more programs include aninstruction. When the instruction is executed by a portable electronicdevice that includes a plurality of application programs, the portableelectronic device can perform the method described in FIG. 7.

Implementation 9

FIG. 19 is a schematic structural diagram illustrating an electronicdevice according to this implementation of the present application.

The electronic device provided in this implementation of the presentapplication logically forms an instant-messaging-based picture sendingdevice. Other structures are the same as the electronic device shown inFIG. 10, and details are not described here again.

FIG. 20 is a schematic structural diagram illustrating aninstant-messaging-based picture sending device according to thisimplementation of the present application. The picture sending deviceincludes a determining unit 2001, an editing unit 2002, and a sendingunit 2003.

The determining unit 2001 determines a target picture.

The receiving unit 2002 edits the target picture in a session windowbased on attribute information of a user who uses a first communicationsclient device, to obtain an edited picture, where the session window isa session window, where the first communications client device interactswith another communications client, or a session window where the firstcommunications client device interacts with other communicationsclients.

The sending unit 2003 sends the edited picture in the session window.

FIG. 21 is a schematic structural diagram illustrating aninstant-messaging-based picture sending apparatus according to thisimplementation of the present application. An apparatus 2100 can includea channel interface 2101, a processor 2102, and optionally include amemory 2103.

The channel interface 2101, the processor 2102, and the memory 2103 canbe connected to each other by using a bus 2104. The bus 2104 can be anIndustry Standard Architecture (ISA) bus, a Peripheral ComponentInterconnect (PCI) bus, an Extended Industry Standard Architecture(EISA) bus, etc. The buses can be classified into an address bus, a databus, a control bus, etc. For ease of representation, the bus isrepresented by using only a bidirectional arrow in FIG. 21, but it doesnot indicate that there is only one bus or only one type of bus.

Optionally, the memory 2103 is configured to store a program. Theprogram can include program code, and the program code includes acomputer operation instruction. The memory 2103 can include a read-onlymemory and a random access memory, and provide an instruction and datafor the processor 2102. The memory 2103 can include a high-speed randomaccess memory (RAM), and can further include a non-volatile memory(non-volatile memory), for example, at least one disk memory.

The processor 2102 is configured to perform the following operations.Optionally, the processor 2102 executes the program stored in the memory2103, and specifically performs the following operations: determining atarget picture; editing the target picture in a session window based onattribute information of a user who uses a first communications clientdevice, to obtain an edited picture, where the session window is asession window, where the first communications client device interactswith another communications client, or a session window where the firstcommunications client device interacts with other communicationsclients; and sending the edited picture in the session window.

The previous methods, disclosed in the implementations shown in FIG. 9and FIG. 19 and FIG. 20 in the present application, performed by aninstant-messaging-based picture sending device or a master node can beapplied to the processor 2102, or be implemented by the processor 2102.The processor 2102 can be an integrated circuit chip, and has a signalprocessing capability. In an implementation process, the steps in theprevious methods can be completed by using an integrated logic circuitof hardware in the processor 2102 or by using an instruction in asoftware form. The processor 2102 can be a general purpose processor,including a central processing unit (CPU), a network processor (NP),etc.; can be a digital signal processor (DSP), an application-specificintegrated circuit (ASIC), a field programmable gate array (FPGA); oranother programmable logic device, a discrete gate or a transistor logicdevice, a discrete hardware component, etc. The processor 2102 canimplement or perform the methods, steps, and logical block diagramsdisclosed in the implementations of the present application. The generalpurpose processor can be a microprocessor, or any conventionalprocessor, etc. The steps of the methods disclosed with reference to theimplementations of the present application can be directly performed bya hardware decoding processor, or performed by a combination of hardwareand software modules in a decoding processor. The software module can belocated in a mature storage medium in the art, such as a random accessmemory, a flash memory, a read-only memory, a programmable read-onlymemory or an electrically erasable programmable memory, or a register.The storage medium is located in the memory 2103, and the processor 2102reads information from the memory 2103 and completes the steps in theprevious methods in combination with the hardware of the processor 2102.

The instant-messaging-based picture sending apparatus 2100 can furtherperform the method in FIG. 9, and implement the method performed by themaster node.

This implementation of the present application further provides acomputer readable storage medium. The computer readable storage mediumstores one or more programs, and the one or more programs include aninstruction. When the instruction is executed by a portable electronicdevice that includes a plurality of application programs, the portableelectronic device can perform the method described in FIG. 9.

The specific implementations of the present specification have beendescribed previously. Other implementations fall within the scope of theappended claims. In some cases, actions or steps described in the claimscan be performed in a sequence different from that in theimplementations and a desired result can still be obtained. In addition,the process described in the accompanying drawings does not necessarilyrequire a specific order or sequence to obtain the desired result. Insome implementations, multitask processing and parallel processing arealso possible or may be advantageous.

In the 1990s, it can be distinguished whether improvement on atechnology is hardware improvement (for example, improvement on acircuit structure such as a diode, a transistor, or a switch) orsoftware improvement (improvement on a method process). However, withthe development of technologies, current improvement on many methodprocesses has already been considered as direct improvement on ahardware circuit structure. Almost all designers program the improvedmethod process into a hardware circuit to obtain the correspondinghardware circuit structure. Therefore, it cannot be said thatimprovement on a method process cannot be implemented by using ahardware entity module. For example, a programmable logic device (PLD)(for example, a field programmable gate array (FPGA)) is such anintegrated circuit, and the logical function of the programmable logicdevice is determined by a user by programming a device. The designersperform voluntary programming to “integrate” a digital system into asingle PLD without requiring a chip manufacturer to design and formulatea dedicated integrated circuit chip. In addition, currently, instead ofmanually formulating an integrated circuit chip, this type ofprogramming is mostly implemented by “logic compiler” software. Thesoftware is similar to a software compiler during program developmentand writing, and original code needs to be written by using a specificprogramming language before being compiled. The programming language isreferred to as a hardware description language (HDL), and there are aplurality of types of HDL, such as Advanced Boolean Expression Language(ABEL), Altera Hardware Description Language (AHDL), Confluence, CornellUniversity Programming Language (CUPL), HDCal, Java Hardware DescriptionLanguage (JHDL), Lava, Lola, MyHDL, PALASM, and Ruby HardwareDescription Language (RHDL). Currently, Very-High-Speed IntegratedCircuit Hardware Description Language (VHDL) and Verilog are mostcommonly used. It should also be clear to a person skilled in the artthat the method process only needs to be logically programmed by usingthe previous several types of hardware description language andprogrammed into an integrated circuit, so that a hardware circuit thatimplements the logical method process can be easily obtained.

A controller can be implemented by using any suitable method. Forexample, the controller can be a microprocessor or a processor, or acomputer readable medium, a logic gate, a switch, anapplication-specific integrated circuit (ASIC), a programmable logiccontroller, and an embedded microprocessor that store computer readableprogram code (such as software or firmware) that can be executed by the(micro) processor. Examples of the controller include but are notlimited to the following microprocessors: ARC 625D, Atmel AT91SAM,Microchip PIC18F26K20, and Silicon Labs C8051F320. A controller of amemory can further be implemented as a part of control logic of thememory. A person skilled in the art also knows that, in addition toimplementing the controller merely by using the computer readableprogram code, method steps can be logically programmed so that thecontroller implements a same function by using a logic gate, a switch,an application-specific integrated circuit, a programmable logiccontroller, an embedded microcontroller, etc. Therefore, such acontroller can be considered as a hardware component, and an apparatusthat is included in the controller and that is configured to implementvarious functions can also be considered as a structure inside thehardware component. Or the apparatus configured to implement variousfunctions can even be considered as both a software module forimplementing the method and a structure inside the hardware component.

The system, apparatus, module, or unit described in the previousimplementations can be specifically implemented by a computer chip or anentity, or implemented by a product that has a particular function. Atypical implementation device is a computer. The computer can be, forexample, a personal computer, a laptop computer, a cellular phone, acamera phone, a smartphone, a personal digital assistant, a mediaplayer, a navigation device, an email device, a game controller, atablet computer, a wearable device, or a combination of any of thesedevices.

For ease of description, the previous apparatus is described by dividingthe functions into various units. Certainly, during implementation ofthe present application, functions of the units can be implemented insame or a plurality of pieces of software and/or hardware.

A person skilled in the art should understand that the implementationsof the present application can be provided as a method, a system, or acomputer program product. Therefore, the present application can use aform of hardware only implementations, software only implementations, orimplementations with a combination of software and hardware. Moreover,the present application can use a form of a computer program productimplemented on one or more computer-usable storage media (including butnot limited to a disk memory, a CD-ROM, an optical memory, etc.) thatinclude computer usable program code.

The present application is described with reference to the flowchartsand/or block diagrams of the method, the device (system), and thecomputer program product based on the implementations of the presentapplication. It should be understood that computer program instructionscan be used to implement each process and/or each block in theflowcharts and/or the block diagrams, and a combination of a processand/or a block in the flowcharts and/or the block diagrams. Thesecomputer program instructions can be provided for a general-purposecomputer, a dedicated computer, an embedded processor, or a processor ofany other programmable data processing device to generate a machine, sothat the instructions executed by a computer or a processor of any otherprogrammable data processing device generate an apparatus forimplementing a specified function in one or more processes in theflowcharts and/or in one or more blocks in the block diagrams.

These computer program instructions can be stored in a computer readablememory that can instruct the computer or any other programmable dataprocessing device to work in a specific way, so that the instructionsstored in the computer readable memory generate an artifact thatincludes an instruction apparatus. The instruction apparatus implementsa specified function in one or more processes in the flowcharts and/orin one or more blocks in the block diagrams.

These computer program instructions can be loaded onto a computer oranother programmable data processing device, so that a series ofoperations and steps are performed on the computer or the anotherprogrammable device, thereby generating computer-implemented processing.Therefore, the instructions executed on the computer or the anotherprogrammable device provide steps for implementing a specific functionin one or more processes in the flowcharts and/or in one or more blocksin the block diagrams.

In a typical configuration, a computing device includes one or moreprocessors (CPU), an input/output interface, a network interface, and amemory.

The memory can include a non-persistent memory, a random access memory(RAM), a non-volatile memory, and/or another form that are in a computerreadable medium, for example, a read-only memory (ROM) or a flash memory(flash RAM). The memory is an example of the computer readable medium.

The computer readable medium includes persistent, non-persistent,movable, and unmovable media that can store information by using anymethod or technology. The information can be a computer readableinstruction, a data structure, a program module, or other data. Examplesof the computer storage medium include but are not limited to aparameter random access memory (PRAM), a static random access memory(SRAM), a dynamic random access memory (DRAM), another type of randomaccess memory (RAM), a read-only memory (ROM), an electrically erasableprogrammable read-only memory (EEPROM), a flash memory or another memorytechnology, a compact disc read-only memory (CD-ROM), a digitalversatile disc (DVD) or other optical storage, a cassette magnetic tape,a tape and disk storage or another magnetic storage device, or any othernon-transmission media that can be used to store information that acomputing device can access. Based on the definition in the presentspecification, the computer readable medium does not include transitorymedia such as a modulated data signal and carrier.

It is worthwhile to further note that, the terms “include”, “comprise”,or their any other variants are intended to cover a non-exclusiveinclusion, so that a process, a method, a commodity, or a device thatincludes a list of elements not only includes those elements but alsoincludes other elements which are not expressly listed; or furtherincludes elements inherent to such process, method, commodity, ordevice. Without more constraints, an element limited by the sentence“includes a . . . ” further includes another identical element in theprocess, method, commodity, or device that includes the element.

The present application can be described in the general context ofcomputer executable instructions executed by a computer, for example, aprogram module. Generally, the program module includes a routine, aprogram, an object, a component, a data structure, etc., for executing aparticular task or implementing a particular abstract data type. Thepresent application can also be practiced in distributed computingenvironments where tasks are performed by remote processing devices thatare connected by using a communications network. In a distributedcomputing environment, program modules can be located in both local andremote computer storage media, including storage devices.

The implementations in the present specification are all describedprogressively, for same or similar parts in the implementations,reference can be made to these implementations, and each implementationfocuses on a difference from other implementations. Especially, a systemimplementation is basically similar to a method implementation, andtherefore, is described briefly. For related parts, refer to partialdescriptions in the method implementation.

The previous implementations are merely implementations of the presentapplication, and are not intended to limit the present application. Aperson skilled in the art can make various modifications and variationsto the present application. Any modification, equivalent replacement, orimprovement made without departing from the spirit and the principle ofthe present application shall fall within the scope of the claims of thepresent application.

FIG. 22 is a flowchart illustrating an example of a computer-implementedmethod 2200 for providing an edited image, according to animplementation of the present disclosure. For clarity of presentation,the description that follows generally describes method 2200 in thecontext of the other figures in this description. However, it will beunderstood that method 2200 can be performed, for example, by anysystem, environment, software, and hardware, or a combination ofsystems, environments, software, and hardware, as appropriate. In someimplementations, various steps of method 2200 can be run in parallel, incombination, in loops, or in any order.

At 2202, a target image is identified at a first computing device. Forexample, as shown in FIG. 3, a cat image (for example, an emoji of a cator a photo of a cat) can be received at a first device. The cat imagecan be displayed, for example, when received as part of a message thatis part of, and sent during, a messaging conversation that is displayedto a user of a mobile device executing a messaging application.

In some implementations, the target image can be identified in variousways. For example, the target image can be received at the firstcomputing device (as shown in FIG. 3) from the second computing device.In another example, the target image can be identified, at the firstcomputing device, from an image library. For example, the user of themessaging application can use controls provided by the messagingapplication to select an image from an image library on the mobiledevice. In another example, the image can be available through theInternet or other networked source. From 2202, method 2200 proceeds to2204.

At 2204, the target image is provided in a display on the firstcomputing device in a communication area displaying a conversationbetween a first user using the first computing device and a second userusing a second computing device. For example, referring to FIG. 3, thecommunication area can be a session window (provided by a messagingapplication) in which the cat image appears. From 2204, method 2200proceeds to 2206.

At 2206, an indication is received that the first user has initiatedediting of the target image. As an example, referring to FIG. 3, themessaging application can receive an indication that the user has used atouch screen of the mobile device to select the cat image for editing.The selection can be, for example, a double-click, a touch and hold, anoption selected from a menu, or some other selection technique. From2206, method 2200 proceeds to 2208.

At 2208, an edit control listing editing options for the target image isprovided for display in the communication area. For example, referringto FIG. 4, the messaging application can provide, for display in thesession window, a floating window or other display element, that listsediting options. The list of the editing options can include inverse,blurring, deformation, and rotation. From 2208, method 2200 proceeds to2210.

At 2210, a user selection of a particular editing option selected fromthe editing options is received at the first computing device. Forexample, referring to FIG. 4, an inverse function can be selected by theuser form the list of editing options. The selection can be made, forexample, by using the touch screen to touch on the inverse editingoption. Other selection techniques can be used, for example, includingusing mouse or keyboard selection. From 2210, method 2200 proceeds to2212.

At 2212, an edited target image is created by editing the target imageusing an edit operation associated with the particular editing option.For example, the edit operation can be a tap/click operation, adouble-tap/click operation, or a touch and hold operation. For invertinga cat image, the edit operation can be the selection of the inverseediting option itself. For blurring the cat image, the edit operationcan be a touch and hold operation that blurs the cat image to ablurriness level based on a length of time of the touch and hold. Inanother example, touching on the cat image can cycle the cat imagethrough increasing levels of blurriness. Other controls can be providedfor reducing, reversing, or canceling the blurriness. For deforming thecat image, the edit operation can be a touch and drag operation thatpulls a portion of the image in the direction of the drag operation,causing the cat image to be stretched. The messaging application can usethe results of the user's input and the edit operation to create anupdated image. As an example, referring to FIG. 5, an inverted cat imagecan be created after user selection of the inverse edit option andcompletion of the edit operation. From 2212, method 2200 proceeds to2214.

At 2214, the edited target image is provided to the second computingdevice, and the communication area is updated to display the editedtarget image. For example, after the user has performed the editoperation and the inverted cat image has been created, the firstcomputing device can provide the edited image to the second computingdevice. FIG. 5, for example, shows both sides of the conversation. Atthe second computing device, the left and right sides of the displayedconversation would be reversed. From 2214, method 2200 stops.

In some implementations, method 2200 can include steps for previewingand confirming the edited target image before it is provided to thesecond computing device. For example, the edited target image can beprovided for preview by the first user on the first computing device.The first user may, for example, decide that the inversed, blurred, ordeformed cat image is not to be sent, such as if the first user is notsatisfied with the result of the edit operation and the visualappearance of the result. If the first computing device receives a userconfirmation, however, then the first computing device can proceed withsending the edited target image to the second computing device.

In some implementations, method 2200 can include steps for saving editedimages. For example, the first user can decide that one or more editedimages are to be locally saved on the first computing device, such as ina library, or stored in a location accessible to the first computingdevice. Stored images can be made accessible for selection in messagingand other applications, such as for insertion of an edited emoji or anedited photo into a message or other document.

Techniques described in the present disclosure can make it easier forusers to create, edit, and manage images, such as emojis and photos thatare sent and received in messaging applications. For example, after auser using a computing device receives an emoji, the user can create anew, edited version of the emoji without having to search for an emojifrom a library. This can give the user flexibility, for example, in thecreation of new emojis that are custom-made by the user. This can occur,for example, using simplified operations, without exiting the messagingapplication or without having to have access to an extensive library ofemojis.

Embodiments and the operations described in this specification can beimplemented in digital electronic circuitry, or in computer software,firmware, or hardware, including the structures disclosed in thisspecification or in combinations of one or more of them. The operationscan be implemented as operations performed by a data processingapparatus on data stored on one or more computer-readable storagedevices or received from other sources. A data processing apparatus,computer, or computing device may encompass apparatus, devices, andmachines for processing data, including by way of example a programmableprocessor, a computer, a system on a chip, or multiple ones, orcombinations, of the foregoing. The apparatus can include specialpurpose logic circuitry, for example, a central processing unit (CPU), afield programmable gate array (FPGA) or an application-specificintegrated circuit (ASIC). The apparatus can also include code thatcreates an execution environment for the computer program in question,for example, code that constitutes processor firmware, a protocol stack,a database management system, an operating system (for example anoperating system or a combination of operating systems), across-platform runtime environment, a virtual machine, or a combinationof one or more of them. The apparatus and execution environment canrealize various different computing model infrastructures, such as webservices, distributed computing and grid computing infrastructures.

A computer program (also known, for example, as a program, software,software application, software module, software unit, script, or code)can be written in any form of programming language, including compiledor interpreted languages, declarative or procedural languages, and itcan be deployed in any form, including as a stand-alone program or as amodule, component, subroutine, object, or other unit suitable for use ina computing environment. A program can be stored in a portion of a filethat holds other programs or data (for example, one or more scriptsstored in a markup language document), in a single file dedicated to theprogram in question, or in multiple coordinated files (for example,files that store one or more modules, sub-programs, or portions ofcode). A computer program can be executed on one computer or on multiplecomputers that are located at one site or distributed across multiplesites and interconnected by a communication network.

Processors for execution of a computer program include, by way ofexample, both general- and special-purpose microprocessors, and any oneor more processors of any kind of digital computer. Generally, aprocessor will receive instructions and data from a read-only memory ora random-access memory or both. The essential elements of a computer area processor for performing actions in accordance with instructions andone or more memory devices for storing instructions and data. Generally,a computer will also include, or be operatively coupled to receive datafrom or transfer data to, or both, one or more mass storage devices forstoring data. A computer can be embedded in another device, for example,a mobile device, a personal digital assistant (PDA), a game console, aGlobal Positioning System (GPS) receiver, or a portable storage device.Devices suitable for storing computer program instructions and datainclude non-volatile memory, media and memory devices, including, by wayof example, semiconductor memory devices, magnetic disks, andmagneto-optical disks. The processor and the memory can be supplementedby, or incorporated in, special-purpose logic circuitry.

Mobile devices can include handsets, user equipment (UE), mobiletelephones (for example, smartphones), tablets, wearable devices (forexample, smart watches and smart eyeglasses), implanted devices withinthe human body (for example, biosensors, cochlear implants), or othertypes of mobile devices. The mobile devices can communicate wirelessly(for example, using radio frequency (RF) signals) to variouscommunication networks (described below). The mobile devices can includesensors for determining characteristics of the mobile device's currentenvironment. The sensors can include cameras, microphones, proximitysensors, GPS sensors, motion sensors, accelerometers, ambient lightsensors, moisture sensors, gyroscopes, compasses, barometers,fingerprint sensors, facial recognition systems, RF sensors (forexample, Wi-Fi and cellular radios), thermal sensors, or other types ofsensors. For example, the cameras can include a forward- or rear-facingcamera with movable or fixed lenses, a flash, an image sensor, and animage processor. The camera can be a megapixel camera capable ofcapturing details for facial and/or iris recognition. The camera alongwith a data processor and authentication information stored in memory oraccessed remotely can form a facial recognition system. The facialrecognition system or one-or-more sensors, for example, microphones,motion sensors, accelerometers, GPS sensors, or RF sensors, can be usedfor user authentication.

To provide for interaction with a user, embodiments can be implementedon a computer having a display device and an input device, for example,a liquid crystal display (LCD) or organic light-emitting diode(OLED)/virtual-reality (VR)/augmented-reality (AR) display fordisplaying information to the user and a touchscreen, keyboard, and apointing device by which the user can provide input to the computer.Other kinds of devices can be used to provide for interaction with auser as well; for example, feedback provided to the user can be any formof sensory feedback, for example, visual feedback, auditory feedback, ortactile feedback; and input from the user can be received in any form,including acoustic, speech, or tactile input. In addition, a computercan interact with a user by sending documents to and receiving documentsfrom a device that is used by the user; for example, by sending webpages to a web browser on a user's client device in response to requestsreceived from the web browser.

Embodiments can be implemented using computing devices interconnected byany form or medium of wireline or wireless digital data communication(or combination thereof), for example, a communication network. Examplesof interconnected devices are a client and a server generally remotefrom each other that typically interact through a communication network.A client, for example, a mobile device, can carry out transactionsitself, with a server, or through a server, for example, performing buy,sell, pay, give, send, or loan transactions, or authorizing the same.Such transactions may be in real time such that an action and a responseare temporally proximate; for example an individual perceives the actionand the response occurring substantially simultaneously, the timedifference for a response following the individual's action is less than1 millisecond (ms) or less than 1 second (s), or the response is withoutintentional delay taking into account processing limitations of thesystem.

Examples of communication networks include a local area network (LAN), aradio access network (RAN), a metropolitan area network (MAN), and awide area network (WAN). The communication network can include all or aportion of the Internet, another communication network, or a combinationof communication networks. Information can be transmitted on thecommunication network according to various protocols and standards,including Long Term Evolution (LTE), 5G, IEEE 802, Internet Protocol(IP), or other protocols or combinations of protocols. The communicationnetwork can transmit voice, video, biometric, or authentication data, orother information between the connected computing devices.

Features described as separate implementations may be implemented, incombination, in a single implementation, while features described as asingle implementation may be implemented in multiple implementations,separately, or in any suitable sub-combination. Operations described andclaimed in a particular order should not be understood as requiring thatthe particular order, nor that all illustrated operations must beperformed (some operations can be optional). As appropriate,multitasking or parallel-processing (or a combination of multitaskingand parallel-processing) can be performed.

What is claimed is:
 1. A computer-implemented method, comprising:displaying, on a first computing device, an instant messagingconversation between a first user using the first computing device and asecond user using a second computing device in a communication area ofan instant messaging application; receiving, at the first computingdevice, a target image from the second computing device, wherein thetarget image comprises an instant-messaging-based emoji or photograph;displaying the target image in the communication area; editing, withinthe communication area of the instant messaging application, the targetimage based on attribute information of the first user; sending, by thefirst computing device, the edited target image to the second computingdevice; and updating the communication area to display the target imageand the edited target image.
 2. The computer-implemented method of claim1, wherein the attribute information of the first user comprises atleast one of location information of the first user, chat contentbetween the first user and another user, and a mood of the first user.3. The computer-implemented method of claim 2, wherein the mood of thefirst user is determined based on contents of the instant messagingconversation.
 4. The computer-implemented method of claim 1, wherein theattribute information of the first user comprises a position of arepresentation of the first user within the communication area, andwherein editing the target image comprises altering one or moreattributes of the target image based on the position of therepresentation of the first user within the communication area.
 5. Thecomputer-implemented method of claim 1, further comprising providing theedited target image for preview by the first user on the first computingdevice.
 6. The computer-implemented method of claim 1, wherein thetarget image is a photo or an emoji.
 7. The computer-implemented methodof claim 1, wherein the communication area is a session window in amessaging application.
 8. A non-transitory, computer-readable mediumstoring one or more instructions that when executed by a computer systemcause the computer system to perform operations comprising: displaying,on a first computing device, an instant messaging conversation between afirst user using the first computing device and a second user using asecond computing device in a communication area of an instant messagingapplication; receiving, at the first computing device, a target imagefrom the second computing device, wherein the target image comprises aninstant-messaging-based emoji or photograph; displaying the target imagein the communication area; editing, within the communication area of theinstant messaging application, the target image based on attributeinformation of the first user; sending, by the first computing device,the edited target image to the second computing device; and updating thecommunication area to display the target image and the edited targetimage.
 9. The non-transitory, computer-readable medium of claim 8,wherein the attribute information of the first user comprises at leastone of location information of the first user, chat content between thefirst user and another user, and a mood of the first user.
 10. Thenon-transitory, computer-readable medium of claim 9, wherein the mood ofthe first user is determined based on contents of the instant messagingconversation.
 11. The non-transitory, computer-readable medium of claim8, wherein the attribute information of the first user comprises aposition of a representation of the first user within the communicationarea, and wherein editing the target image comprises altering one ormore attributes of the target image based on the position of therepresentation of the first user within the communication area.
 12. Thenon-transitory, computer-readable medium of claim 8, wherein theoperations further comprise providing the edited target image forpreview by the first user on the first computing device.
 13. Thenon-transitory, computer-readable medium of claim 8, wherein the targetimage is a photo or an emoji.
 14. The non-transitory, computer-readablemedium of claim 8, wherein the communication area is a session window ina messaging application.
 15. A first computing device comprising: one ormore processors; and one or more computer memory devices interoperablycoupled with the one or more processors and having tangible,non-transitory, machine-readable media storing one or more instructionsthat, when executed by the one or more processors, cause the one or moreprocessors to perform one or more operations comprising: displaying aninstant messaging conversation between a first user using the firstcomputing device and a second user using a second computing device in acommunication area of an instant messaging application; receiving atarget image from the second computing device, wherein the target imagecomprises an instant-messaging-based emoji or photograph; displaying thetarget image in the communication area; editing, within thecommunication area of the instant messaging application, the targetimage based on attribute information of the first user; sending theedited target image to the second computing device; and updating thecommunication area to display the target image and the edited targetimage.
 16. The first computing device of claim 15, wherein the attributeinformation of the first user comprises at least one of locationinformation of the first user, chat content between the first user andanother user, and a mood of the first user.
 17. The first computingdevice of claim 16, wherein the mood of the first user is determinedbased on contents of the instant messaging conversation.
 18. The firstcomputing device of claim 15, wherein the attribute information of thefirst user comprises a position of a representation of the first userwithin the communication area, and wherein editing the target imagecomprises altering one or more attributes of the target image based onthe position of the representation of the first user within thecommunication area.
 19. The first computing device of claim 15, whereinthe operations further comprise providing the edited target image forpreview by the first user on the first computing device.
 20. The firstcomputing device of claim 15, wherein the target image is a photo or anemoji.